<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFinancialInstitutionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('financial_institutions', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('机构名称');
            $table->string('type')->default('')->comment('机构类型');
            $table->string('address')->default('')->comment('机构地址');
            $table->string('phone')->default('')->comment('联系方式');
            $table->string('contact')->default('')->comment('联系人');
            $table->string('qualification')->default('')->comment('机构资质');
            $table->string('registration')->default('')->comment('注册时间');
            $table->string('description')->default('')->comment('机构简介');
            $table->string('status')->default('1')->comment('机构状态');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('financial_institutions');
    }
}
